package cn.edu.njuit.springbootfilmreview.dto;

import lombok.Data;

/**
 * @Author guzy
 * @Description 验证码对象
 * @Date 2022/3/30 10:25
 **/

@Data
public class ValidateCode {
    String randomCode;
    String imageUrl;

    public ValidateCode() {
    }

    public ValidateCode(String randomCode) {
        this.randomCode = randomCode;
    }

    public String getRandomCode() {
        return randomCode;
    }

    public void setRandomCode(String randomCode) {
        this.randomCode = randomCode;
    }

    public String getImageUrl() {
        this.imageUrl = "/image/validate-code?code=" + this.randomCode;
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
}
